package com.xiaobai.feign;

import com.xiaobai.feign.follback.ProductFeignFallBackClient;
import com.xiaobai.product.bean.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author
 * @Description
 * @Date created in 10:35 2025/1/27
 */
@FeignClient(value = "service-product",fallback = ProductFeignFallBackClient.class)
public interface ProductFeignClient  {
    @GetMapping("/product/{id}")
    Product getProductById(@PathVariable("id") Long productId);
}
